#ifndef LOG_H_
#define LOG_H_

#include <stdio.h>

#define ALL_DEBUG_SWITCH		1

// log level
#define LOG_INFO	0
#define LOG_WARNING	1
#define LOG_ERROR	2
#define LOG_DEBUG	3

#define FLOG_PATH	"/opt/coloro/log-fbv/"

#define LEN_DATE	16
#define LEN_TIME	16
#define LEN_PATH	256

void getsysdate(char *date);
void getsystime(char *time);

int mkdirs(const char *fpath);

int log2file(const char *fpath, const char *format, va_list args);
int Log(int level, const char *format, ...);

#endif /* LOG_H_ */
